<ion-view view-title="{{title}}" class="service">
	<div class="bar bar-subheader line-bottom padding-0 text-center">
		<!--描述：顶部模块-->
		<div class="row padding-0 font-middle-my  margin-top-10">
			<div class="col padding-0" on-tap="doSearch(1)" ng-class="{'assertive':orderby==1}">
				默认排序
			</div>
			<div class="col padding-0" on-tap="doSearch(4)" ng-class="{'assertive':orderby==4||orderby==5}">
				价格&nbsp;
				<i class="icon ion-ios-arrow-up paixu_top" style="top: 7px;" ng-class="{'font-gray-my':orderby==4}"></i>
				<i class="icon ion-ios-arrow-down paixu_bottom" style="bottom: 7px;" ng-class="{'font-gray-my':orderby==5}"></i>
			</div>
			<div class="col padding-0" on-tap="rightSideMenu()">
				筛选<i class="iconfont icon-shaixuan"></i>
			</div>
		</div>
	</div>
	
	<!-- 侧边菜单 -->
	<ion-side-menus>
		<!-- 中间内容 -->
		<ion-side-menu-content>
			<ion-content class="has-header has-subheader">
				<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
				<div class="searchorder_search_span">
					<i class="icon ion-search h4  searchorder_search_span_icon font-gray-my"></i>
					<input class="searchorder_search_span_input" placeholder="请输入关键词" type="text" ng-model="input.key"/>
					<i class="icon ion-ios-close-outline font-large-my" ng-show="input.key.length>0" on-tap="clear_key()"></i>
					<span class="searchorder_search_span_button" on-tap="doSearch()">搜索</span>
			    </div>
			    <div class="clearfix"></div>
				<div class="text-center font-small-my font-gray-my" ng-if="datas.data.length>0">
					共有<span class="assertive">{{datas.page.count}}</span>件商品
				</div>
				<div class="font-large-my font-gray-my text-center padding" ng-if="datas.data.length==0||datas.data==null">
					<i class="icon ion-sad-outline font-1rem-my"></i> 对不起，没有符合条件的数据.....
				</div>
				
					<!--<ion-scroll direction="y" ng-style="secondhand_myObj">-->
						<div class="secondhand_product" ng-repeat="data in datas.data">
							<div style="width: 100%;height: 7rem;">
								<img src="{{data.image}}" ng-if="data.image" style="width: 100%;max-height: 7rem;" on-tap="onShow_detail(data.goods_id)" />
								<img src="{{noImg}}" ng-if="data.image==''||data.image==null" style="width: 100%;max-height: 7rem;" on-tap="onShow_detail(data.goods_id)" />
							</div>

							<p class="padding-left-5-my ellipsis-2" style="height: 40px;">{{data.name}}</p>
							<p class="secondhand_product_price">
								{{data.price|currency:'¥'}}<span style="text-decoration: line-through;" class="font-gray-my font-small-my right-zhang">原价:{{data.mktprice|currency:'¥'}}</span></p>
							<p class="secondhand_product_phone">联系方式：{{data.phone}}</p>
							<li class="item padding-10">
								<button class="button assertive-border button-small font-gray-my" on-tap="onshow_first(data.store_id)"> 
			              	  		<i class="ion ion-home assertive"></i>{{data.store_name}}
								</button>
							</li>
						</div>
						<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
					<!--</ion-scroll>-->
				<!--</div>-->
			</ion-content>
		</ion-side-menu-content>

		<ion-side-menu side="right">
			<ion-content class="has-header has-subheader">
				<ul class="list">
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label">品类</div>
								<div class="input-value" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
							</div>
							<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label"></div>
								<div class="input-value" ng-click="doSelectCat2()">{{input.cat2.name}}</div>
							</div>
							<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label"></div>
								<div class="input-value" ng-click="doSelectCat3()">{{input.cat3.name}}</div>
							</div>
							<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label">地域</div>
								<div class="input-value" ng-click="doSelectProvince()">{{input.province.name}}</div>
							</div>
							<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label"></div>
								<div class="input-value" ng-click="doSelectCity()">{{input.city.name}}</div>
							</div>
							<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label"></div>
								<div class="input-value" ng-click="doSelectDistrict()">{{input.district.name}}</div>
							</div>
				</ul>
				<div class="row">
					<div class="col"><button class="button button-full button-energized" on-tap="doCancel()">取消</button></div>
					<div class="col"><button class="button button-full button-assertive" on-tap="doSearch()">确定</button></div>
				</div>
			</ion-content>
		</ion-side-menu>

	</ion-side-menus>
</ion-view>